
import 'package:flutter/material.dart';
import 'package:myapp/page/about/about.dart';

class Router extends StatefulWidget {
  const Router({super.key});

  @override
  State<Router> createState() => _RouterState();
}


class _RouterState extends State<Router>{

  Map<String, dynamic> list = {
    'title': 'about',
    'component': About,
  };


  @override
  Widget build(BuildContext context) {
    return list['component'] as Widget;
  }

}